package bean;

import java.util.List;

/**
 * 树形结构数据
 * @author wevil
 * @date 2020/9/24
 * */
public class TreeInfo {
    /** ID */
    private Integer id;
    /** 标题 */
    private String title;
    /** 父ID */
    private Integer pid;
    /** 子节点 */
    private List<TreeInfo> children;
    /** 是否可选 */
    private Integer selectable;

    public TreeInfo(){

    }

    public TreeInfo(Integer id, String title, Integer pid, Integer selectable) {
        this.id = id;
        this.title = title;
        this.pid = pid;
        this.selectable = selectable;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public List<TreeInfo> getChildren() {
        return children;
    }

    public void setChildren(List<TreeInfo> children) {
        this.children = children;
    }

    public Integer getSelectable() {
        return selectable;
    }

    public void setSelectable(Integer selectable) {
        this.selectable = selectable;
    }
}
